<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script src='../node_modules/react/umd/react.development.js'></script>
    <script src='../node_modules/react-dom/umd/react-dom.development.js'></script>
    <script src='../node_modules/babel-standalone/babel.min.js'></script>
    <script src='../node_modules/prop-types/prop-types.js'></script>
</head>

<body>
    <div id='root'></div>
    <script type='text/babel'>
        class MyCom extends React.Component {
            constructor(props) {
                super(props)
                this.state = {
                    innerHtml: "<p>你妹</p>"
                }
            }

            render() {
                return (
                    <div>
                        <div>{this.state.innerHtml}</div>
                        <div dangerouslySetInnerHTML={{ __html: this.state.innerHtml }}></div>
                    </div>
                )
            }
        }
        ReactDOM.render(<MyCom />, root)
    </script>
</body>

</html>